package fr.enssat.embeddedsoft.projet.sumo.ndiaye.bouzidi;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class Cercle {
        private float x;
    private float y;
    private final int r;
    private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
    private Canvas canvas;
        
         public Cercle (int r, int color) {
            mPaint.setColor(color);
            this.r = r;
        }
         
//        public void update() {
//                x++;
//        }
                 
        protected void draw(Canvas canvas) {
                canvas.drawCircle(x, y, r, mPaint);
                this.canvas=canvas;
        }

        public float getX() {
                return x;
        }

        public void setX(float x) {
                this.x = x;
        }

        public float getY() {
                return y;
        }

        public void setY(float y) {
                this.y = y;
        }

        public int getR() {
                return r;
        }

        public void setCanvas(Canvas canvas) {
                this.canvas = canvas;
        }

        public Canvas getCanvas() {
                return canvas;
        }
        	
}